<template>
	<view>
		<star-nav :type="3" title="转赠规则" icon="/static/icon-images/rocket.png"></star-nav>
		
		<star-rules ref="rulesRef" :type="type"></star-rules>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:1
			}
		},
		onLoad(option) {
			this.type = option.type*1
			setTimeout(()=>{
				this.getrules()
			},500)
		},
		methods: {
			getrules(){
				this.$refs.rulesRef.getrulList()
			}
		}
	}
</script>

<style lang="scss">
	page {
		width: 100%;
		height: 100vh;
		background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	}
	
	.content{
		padding: 20rpx;
	}
	
	.mt-20{
		margin-top: 20rpx;
	}
</style>